{% extends "bugs/base.html" %}
{% block content_title %}{% endblock %}
{% block breadcrumbs %}{% endblock %}
{% block main %}
  <h2>{% block listtitle %}List Title{% endblock %}</h2>
  <div id="tablecontent">
  {% if tasklist %}
  <table width="100%">
  <tr bgcolor="#B7B7DD">
  <th width="5%" align="center">id</th>
  <th width="20%">Date</th>
  <th width="5%">Kind</th>
  <th width="15%">Status</th>
  <th width="10%">Owner</th>
  <th width="45%">Summary</th>
  </tr>
  {% for task in tasklist %}
    <tr bgcolor="{% cycle 'white' '#dfdfdf' %}">
	  <td align="center"  {% ifequal task.severity "Major" %}bgcolor="#FFDECA"{% endifequal %}{% ifequal task.severity "Normal" %} bgcolor="#FFFBCA"{% endifequal %}{% ifequal task.severity "Minor" %}bgcolor="#CAFFCE"{% endifequal %}{% ifequal task.severity "Dream" %}bgcolor="#CAD3FF"{% endifequal %}>
	  <a href="{% url homesite.bugs.views.taskinfo prjid,task.id %}">{{ task.serial }}</a></td>
	  <td>{{ task.date }}</td>
	  <td align="center">
	  <img src="{% load media %}{% media_prefix %}img/{% ifequal task.kind 'Bug' %}Bug.gif{% else %}Feature.gif{% endifequal %}" border="0" alt=""></td>
	  <td>{{ task.status }} {% ifequal task.status "Resolved" %}({{ task.resolution }}){% endifequal %}</td>
	  <td>{{ task.owner }}</td>	  
	  <td>{{ task.summary }}</td>
    </tr>
  {% endfor %}
  </table>
  {% else %}
  <p>No tasks avalible</p>
  {% endif %}
  </div>
{% endblock %}

